Skip to content

fix(pricing): add 2027-01-06 deprecation_date to OpenAI TTS models - #44113

Closed
benlangfeld wants to merge 2 commits into
BerriAI:mainfrom
benlangfeld:openai-tts-deprecation-date
Closed

benlangfeld wants to merge 2 commits into
BerriAI:mainfrom
benlangfeld:openai-tts-deprecation-date

Conversation

@benlangfeld

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • OpenAI shuts down tts-1, tts-1-hd and gpt-4o-mini-tts on 2027-01-06
  • The cost map has no deprecation_date for any of them

How it solves it:

  • Adds "deprecation_date": "2027-01-06" to all seven OpenAI TTS entries
  • Applies the same change to the main and backup cost maps

User Flow

Before: someone checking LiteLLM's model metadata for upcoming retirements doesn't see the OpenAI TTS shutdown

  1. They read the gpt-4o-mini-tts entry in model_prices_and_context_window.json
  2. It has no deprecation_date, so nothing warns them about the shutdown

After: the same check shows the shutdown date

  1. They read the same gpt-4o-mini-tts entry
  2. It now shows "deprecation_date": "2027-01-06", matching OpenAI's notice

Relevant issues

OpenAI announced the shutdown by email to API customers. It isn't on OpenAI's deprecations page yet, and other customers have reported the same email.

Pre-Submission checklist

  • I have added meaningful tests: tests/unit/test_openai_tts_deprecation_date.py checks the date on every entry in both cost maps, and that main and backup match
  • The handful of test files covering my change pass locally: 21 passed after the change; 14 failed before it
  • My PR passes all required CI/CD checks
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5

Screenshots / Proof of Fix

This is a metadata-only change with no request path to exercise end to end. The proof is the new test, run at the merge base and at this PR's tip.

Before (1e75147)

  1. pytest -q --noconftest tests/unit/test_openai_tts_deprecation_date.py
  2. 14 failed, 7 passed: every entry is missing deprecation_date

After (c760c9a)

  1. pytest -q --noconftest tests/unit/test_openai_tts_deprecation_date.py
  2. 21 passed

Type

🐛 Bug Fix

Caveats (if any)

Low

  • The azure/* TTS entries are unchanged; they already carry Azure's own retirement dates
  • --noconftest was used locally because tests/unit/conftest.py needs boto3, which this test doesn't use

🤖 Generated with Claude Code

OpenAI has notified API customers that tts-1, tts-1-hd and
gpt-4o-mini-tts (all snapshots) shut down on January 6, 2027.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NE8CmK9bPvVUvzB53cGDNQ
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NE8CmK9bPvVUvzB53cGDNQ
@greptile-apps

greptile-apps Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Adds deprecation dates to text-to-speech model metadata.

The PR appears safe to merge; no actionable issue was identified.

Summary

Adds the announced 2027-01-06 shutdown date to seven OpenAI TTS model entries in the main and backup cost maps, with tests for the dates and map consistency.

Reviews (1) · Last reviewed commit: "fix(pricing): add 2027-01-06 deprecation..."

@codspeed

codspeed Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing benlangfeld:openai-tts-deprecation-date (637ebc4) with main (ae6b762)

Open in CodSpeed

@codecov

codecov Bot commented Oct 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Thanks, these four TTS deprecation dates are verified and now included in the rolling registry PR #44175, so closing this one

devin-ai-integration Bot added a commit that referenced this pull request Oct 2, 2026
Co-authored-by: Ben Langfeld <210221+benlangfeld@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
kerry-berri pushed a commit that referenced this pull request Oct 2, 2026
* fix(cost-map): add OpenAI TTS and GPT-5.x deprecation dates

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* chore(cost-map): credit OpenAI TTS deprecation dates from #44113

Co-authored-by: Ben Langfeld <210221+benlangfeld@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Ben Langfeld <210221+benlangfeld@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants